package com.coocaa.ops.admin.v1.timedtask.ftl;


import com.coocaa.ops.plus.core.base.BaseFtlAction;
import com.coocaa.ops.plus.core.base.annotation.MyAuth;
import com.coocaa.ops.plus.core.base.enums.MyRoleEnums;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;

/**
 * @author bijiahao
 * @date : 2019/8/7.
 * @description 定时任务前端ftl页面
 *
 */
@Controller
@RequestMapping("/myExtend")
public class TimedTaskFtlAction {

    /**
     * 定时管理页面
     *
     * @param request
     * @return
     * @throws Exception
     */
    @MyAuth(validAuth = true, hasRoles = {MyRoleEnums.ROLE_ADMIN})
    @RequestMapping(value = "/timedTaskView")
    public String view(HttpServletRequest request) {
        return "timedTask/timedTaskView";
    }
}
